package com.qing.demo.netty.service;

import com.qing.demo.netty.domain.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

/**
 * @author caozhipeng
 * @date 2025/8/2
 */
@Component("userRepository")
public interface UserRepository extends ElasticsearchRepository<User, String> {

    Page<User> findByNameLike(@Param("name") String name, Pageable pageable);
}
